


var mongoose = require("mongoose")

var Schema = mongoose.Schema;

var myuser1 = new Schema({
    username: String,
    mobile: String,
    userpwd: String,
    dbpass: String,
    time: Date
});


exports.Myuser = mongoose.model('userinfo', myuser1);


var movie1 = new Schema({
    "genres": Array,
    "casts": Array,
    "rating": Object,
    "title": String,
    directors: Object,
    "collect_count": Number,
    "original_title": String,
    "subtype": String,
    "year": String,
    "images": Object,
    "alt": String,
    "id": String
})

exports.Movie = mongoose.model("movies", movie1);

var comment = new Schema({
    title: String,
    content: String,
    time: Date,
    username: String,
    mid: String,
    movie: Object
})

exports.Comment = mongoose.model("comment1", comment);

var vuereg = new Schema({
    username: String,
    pwd: String,
    phone: String,
    time: Date,
    avatar: String
})

exports.Vuereg = mongoose.model("vuereg1", vuereg);

var vuedata = new Schema({
    name: String,
    gui: String,
    cai: String,
    color: String,
    num: Number,
    _id: String,
    time: Date,
    img: String,
    pirce: String
})

exports.Vuedata = mongoose.model("vuedata1", vuedata);

var jiajia = new Schema({
    addressDetail: String,
    city: String,
    county: String,
    name: String,
    postalCode: String,
    province: String,
    tel: String
})

exports.Jiajia = mongoose.model("jiajia1", jiajia);

var liuyan = new Schema({
    title: String,
    content: String,
    time: Date
});


exports.LiuYan = mongoose.model('liuyan1', liuyan);

var prouser = new Schema({
    phone: String,
    pass: String,
    username: String,
    avatar: String,
    time: Date,
    role: Number
});


exports.Prouser = mongoose.model('prouser1', prouser);

var volume = new Schema({
    phone: String,
    username: String,
    time: Date,
    degree: Number,
    isTest: Boolean  // 是否核酸检测 最近14天内 
});


exports.Volume = mongoose.model('volume1', volume);

var gonggao = new Schema({
    title: String,
    content: String,
    time: Date,
    username: String,
    score: Number
});

exports.GongGao = mongoose.model('gonggao1', gonggao);

var reactuser = new Schema({
    userpwd: String,
    username: String,
    type: String,
    time: Date
});

exports.Reactuser = mongoose.model('reactuser1', reactuser);

var thenurse = new Schema({
    name: String,
    age: Number,
    sex: String,
    phone: String,
    address: String,
    profession: String,
    office: String,
    education: String,
    date: String,
    type: Number
});
exports.Thenurse = mongoose.model("thenurse1", thenurse)

var leavelist = new Schema({
    name: String,
    Email: String,
    phone: String,
    htmllable: String,
    office: String,
    flag: Boolean,
    type: Number
});
exports.Leavelist = mongoose.model("leavelist1", leavelist)